package com.generic.demo1;

/**
 * @ClassName Tortoise
 * @Description 乌龟
 * @Author Kx
 * @Date 2025/3/25 19:35
 * @Version 1.0
 */
public class Tortoise extends Pet{
    private String name;
    private String trait; // 性格

    public Tortoise(String name,String trait) {
        this.name = name;
        this.trait = trait;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getTrait() {
        return trait;
    }

    @Override
    public void setTrait(String trait) {
        this.trait = trait;
    }
}
